import { PORT1 } from "@/api/config/servicePort";
import Http from "@/api/index";

export const getCategoryList = (params: any) => {
  return Http.get(PORT1 + "/system/loupan/category/list", params);
};

export const createCategory = (params: any) => {
  return Http.post(PORT1 + "/system/loupan/category/add", params);
};

export const editCategory = (params: any) => {
  return Http.put(PORT1 + "/system/loupan/category/edit", params);
};
